//
//  UIImage+Normal.h
//  DS_PJ_01
//
//  Created by admin on 16/7/16.
//  Copyright © 2016年 zhiqiyun. All rights reserved.
//

#import <UIKit/UIKit.h>

#define imgURL(str) [NSURL URLWithString:[NSString stringWithFormat:@"%@%@",IMAGE_HOST,str]]
#define imageName(name) [UIImage imageNamed:name]

//默认图片
#define DefaultImage [UIImage imageNamed:@"defalut"]

@interface  UIImageView(Normal)

//给imageView添加一个动画效果
- (void)setImage:(UIImage *)image animated:(BOOL)animated;
- (void)setImage:(UIImage *)image duration:(NSTimeInterval)duration;
/*
 把颜色变成iamge
 **/
+ (UIImage *)getImageWithColor:(UIColor *)color;
/*
 imageName1为背景，imageName2加在上面
 **/
+ (UIImage *)addImage:(NSString *)imageName1 withImage:(NSString *)imageName2;
@end
